package per.destiny.seckill.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import per.destiny.seckill.mapper.custom.CustomGoodsMapper;
import per.destiny.seckill.vo.GoodsVo;

import java.util.List;

@Service
public class GoodsService {

    @Autowired
    private CustomGoodsMapper customGoodsMapper;

    public List<GoodsVo> findGoodsVo() {
        List<GoodsVo> goodsVoList = customGoodsMapper.findGoodsVo();
        return goodsVoList;
    }

    public GoodsVo findGoodsVoById(Long goodsId) {
        return customGoodsMapper.findGoodsVoById(goodsId);
    }
}
